/*                                                     
 * $Id: hello.c,v 1.5 2004/10/26 03:32:21 corbet Exp $ 
 */                                                    
#include <linux/init.h>
#include <linux/module.h>

#undef dev_dbg
#undef dev_err
#undef dev_warn
#undef dm9000_dbg


#define dev_dbg(dev, format, arg...)		\
	printk(KERN_INFO "%s %d %s: " format , __FILE__, __LINE__, __func__,  ## arg)

#define dev_err(dev, format, arg...)		\
	printk(KERN_ERR "%s %d %s: " format , __FILE__, __LINE__, __func__,  ## arg)

#define dev_warn(dev, format, arg...)		\
	printk(KERN_WARNING "%s %d %s: " format , __FILE__, __LINE__, __func__,  ## arg)

#define dm9000_dbg(db, lev, msg...)	do {		\
		dev_dbg(db->dev, msg);			\
} while (0)

MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)
{
	int i = 10;
	printk(KERN_ALERT "Hello, world\n");
	dev_dbg(hello, "wxy test dev_dbg i=%d\n", i);
	dev_err(hello, "wxy test dev_err i=%d\n", i);
	dev_warn(hello, "wxy test dev_warn i=%d\n", i);
	dm9000_dbg(dbhello, level, "wxy test dm9000_dbg i=%d\n", i);
	

	return 0;
}

static void hello_exit(void)
{
	printk(KERN_ALERT "Goodbye, cruel world\n");
}

module_init(hello_init);
module_exit(hello_exit);
